#include<stdio.h>
main()
{
int i,fact=1,n,factor;
printf("enter the value : ");
scanf("%d",&n);
for(i=n;i>1;i--)
{
fact*=i;
printf("factorial is %d \n",fact);
}
}
